# Attempt to parse GPS info!
from time import *

line='$PMTK251,9600*'

maxLen=0
i=0
CS=0

CS=0
for i in line:
	if i=='$':
		continue
	if i=='*':
		break
	print 'Char:',i,':',hex(ord(i))
	CS=CS ^ ord(i)
print line
print 'Check Sum:',hex(CS)
print line,hex(CS)

quit()